import cv2,os,time
import matplotlib.pyplot as plt
import cvlib as cv
from cvlib.object_detection import draw_bbox
# C:\Users\DELL\.cvlib\object_detection\yolo\yolov3

def detect(f):
    im = cv2.imread(f)
    bbox, label, conf = cv.detect_common_objects(im)
    print (bbox,label,conf)
    output_image = draw_bbox(im, bbox, label, conf)
    opath ="./out.png" 
    cv2.imwrite(opath, output_image)
detect("./a.jpg")